package com.tanhua.server.service;

import com.tanhua.model.domain.UserInfo;
import com.tanhua.model.vo.Counts;
import com.tanhua.model.vo.PageResult;
import com.tanhua.model.vo.UserInfoVo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * @author wjs
 * @version 1.0
 * @date 2021/12/23 0023 下午 1:22
 */
public interface UserInfoService {
    void save(UserInfo userInfo);

    void updateHead(MultipartFile headPhoto, Long id)  throws IOException;

    UserInfoVo findById(Long userID);

    void update(UserInfo userInfo);

    Counts counts();

    PageResult friends(Integer page, Integer pagesize, String type, String nickname);

    UserInfo findByUserId(Long userId);

    void saveUserLike(String uid);

    void removeUserLike(String uid);
}
